
option expr32
option casemap:none

; Begin of file stdio.h
size_t		TYPEDEF		DWORD

wchar_t		TYPEDEF		WORD

wint_t		TYPEDEF		WORD

wctype_t		TYPEDEF		WORD

va_list		TYPEDEF		PTR SBYTE

BUFSIZ		EQU		512t
_NSTREAM_		EQU		512t
_IOB_ENTRIES		EQU		20t
EOF		EQU		0ffffffffh
@t_stdio_0		TYPEDEF		PTR SBYTE
@t_stdio_1		TYPEDEF		PTR SBYTE
@t_stdio_2		TYPEDEF		PTR SBYTE
_iobuf		STRUCT 4t
_ptr		@t_stdio_0		?
_cnt		SDWORD		?
_base		@t_stdio_1		?
_flag		SDWORD		?
_file		SDWORD		?
_charbuf		SDWORD		?
_bufsiz		SDWORD		?
_tmpfname		@t_stdio_2		?
_iobuf		ENDS

FILE		TYPEDEF		_iobuf

SEEK_CUR		EQU		1t
SEEK_END		EQU		2t
SEEK_SET		EQU		0t
FILENAME_MAX		EQU		260t
FOPEN_MAX		EQU		20t
_SYS_OPEN		EQU		20t
TMP_MAX		EQU		32767t
EXTERNDEF		C _iob:FILE

fpos_t		STRUCT 4t
lopart		DWORD		?
hipart		SDWORD		?
fpos_t		ENDS

_IOREAD		EQU		000000001h
_IOWRT		EQU		000000002h
_IOFBF		EQU		000000000h
_IOLBF		EQU		000000040h
_IONBF		EQU		000000004h
_IOMYBUF	EQU		000000008h
_IOEOF		EQU		000000010h
_IOERR		EQU		000000020h
_IOSTRG		EQU		000000040h
_IORW		EQU		000000080h
@proto_stdio_0		TYPEDEF		PROTO C :PTR FILE
_filbuf		PROTO		@proto_stdio_0

@proto_stdio_1		TYPEDEF		PROTO C :SDWORD, :PTR FILE
_flsbuf		PROTO		@proto_stdio_1

@proto_stdio_2		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE, :SDWORD
_fsopen		PROTO		@proto_stdio_2

@proto_stdio_3		TYPEDEF		PROTO C :PTR FILE
clearerr		PROTO		@proto_stdio_3

@proto_stdio_4		TYPEDEF		PROTO C :PTR FILE
fclose		PROTO		@proto_stdio_4

@proto_stdio_5		TYPEDEF		PROTO C 
_fcloseall		PROTO		@proto_stdio_5

@proto_stdio_6		TYPEDEF		PROTO C :SDWORD, :PTR SBYTE
_fdopen		PROTO		@proto_stdio_6

@proto_stdio_7		TYPEDEF		PROTO C :PTR FILE
feof		PROTO		@proto_stdio_7

@proto_stdio_8		TYPEDEF		PROTO C :PTR FILE
ferror		PROTO		@proto_stdio_8

@proto_stdio_9		TYPEDEF		PROTO C :PTR FILE
fflush		PROTO		@proto_stdio_9

@proto_stdio_10		TYPEDEF		PROTO C :PTR FILE
fgetc		PROTO		@proto_stdio_10

@proto_stdio_11		TYPEDEF		PROTO C 
_fgetchar		PROTO		@proto_stdio_11

@proto_stdio_12		TYPEDEF		PROTO C :PTR FILE, :PTR fpos_t
fgetpos		PROTO		@proto_stdio_12

@proto_stdio_13		TYPEDEF		PROTO C :PTR SBYTE, :SDWORD, :PTR FILE
fgets		PROTO		@proto_stdio_13

@proto_stdio_14		TYPEDEF		PROTO C :PTR FILE
_fileno		PROTO		@proto_stdio_14

@proto_stdio_15		TYPEDEF		PROTO C 
_flushall		PROTO		@proto_stdio_15

@proto_stdio_16		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE
fopen		PROTO		@proto_stdio_16

@proto_stdio_17		TYPEDEF		PROTO C :PTR FILE, :PTR SBYTE, :VARARG
fprintf		PROTO		@proto_stdio_17

@proto_stdio_18		TYPEDEF		PROTO C :SDWORD, :PTR FILE
fputc		PROTO		@proto_stdio_18

@proto_stdio_19		TYPEDEF		PROTO C :SDWORD
_fputchar		PROTO		@proto_stdio_19

@proto_stdio_20		TYPEDEF		PROTO C :PTR SBYTE, :PTR FILE
fputs		PROTO		@proto_stdio_20

@proto_stdio_21		TYPEDEF		PROTO C :PTR , :size_t, :size_t, :PTR FILE
fread		PROTO		@proto_stdio_21

@proto_stdio_22		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE, :PTR FILE
freopen		PROTO		@proto_stdio_22

@proto_stdio_23		TYPEDEF		PROTO C :PTR FILE, :PTR SBYTE, :VARARG
fscanf		PROTO		@proto_stdio_23

@proto_stdio_24		TYPEDEF		PROTO C :PTR FILE, :PTR fpos_t
fsetpos		PROTO		@proto_stdio_24

@proto_stdio_25		TYPEDEF		PROTO C :PTR FILE, :SDWORD, :SDWORD
fseek			PROTO		@proto_stdio_25

@proto_stdio_26		TYPEDEF		PROTO C :PTR FILE
ftell			PROTO		@proto_stdio_26

@proto_stdio_27		TYPEDEF		PROTO C :PTR , :size_t, :size_t, :PTR FILE
fwrite			PROTO		@proto_stdio_27

@proto_stdio_28		TYPEDEF		PROTO C :PTR FILE
getc			PROTO		@proto_stdio_28

@proto_stdio_29		TYPEDEF		PROTO C 
getchar			PROTO		@proto_stdio_29

@proto_stdio_30		TYPEDEF		PROTO C 
_getmaxstdio		PROTO		@proto_stdio_30

@proto_stdio_31		TYPEDEF		PROTO C :PTR SBYTE
gets			PROTO		@proto_stdio_31

@proto_stdio_32		TYPEDEF		PROTO C :PTR FILE
_getw			PROTO		@proto_stdio_32

@proto_stdio_33		TYPEDEF		PROTO C :PTR SBYTE
perror			PROTO		@proto_stdio_33

@proto_stdio_34		TYPEDEF		PROTO C :PTR FILE
_pclose			PROTO		@proto_stdio_34

@proto_stdio_35		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE
_popen			PROTO		@proto_stdio_35

@proto_stdio_36		TYPEDEF		PROTO C :PTR SBYTE, :VARARG
printf			PROTO		@proto_stdio_36

@proto_stdio_37		TYPEDEF		PROTO C :SDWORD, :PTR FILE
putc			PROTO		@proto_stdio_37

@proto_stdio_38		TYPEDEF		PROTO C :SDWORD
putchar			PROTO		@proto_stdio_38

@proto_stdio_39		TYPEDEF		PROTO C :PTR SBYTE
puts			PROTO		@proto_stdio_39

@proto_stdio_40		TYPEDEF		PROTO C :SDWORD, :PTR FILE
_putw			PROTO		@proto_stdio_40

@proto_stdio_41		TYPEDEF		PROTO C :PTR SBYTE
remove			PROTO		@proto_stdio_41

@proto_stdio_42		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE
rename			PROTO		@proto_stdio_42

@proto_stdio_43		TYPEDEF		PROTO C :PTR FILE
rewind			PROTO		@proto_stdio_43

@proto_stdio_44		TYPEDEF		PROTO C 
_rmtmp			PROTO		@proto_stdio_44

@proto_stdio_45		TYPEDEF		PROTO C :PTR SBYTE, :VARARG
scanf			PROTO		@proto_stdio_45

@proto_stdio_46		TYPEDEF		PROTO C :PTR FILE, :PTR SBYTE
setbuf			PROTO		@proto_stdio_46

@proto_stdio_47		TYPEDEF		PROTO C :SDWORD
_setmaxstdio		PROTO		@proto_stdio_47

@proto_stdio_48		TYPEDEF		PROTO C :PTR FILE, :PTR SBYTE, :SDWORD, :size_t
setvbuf			PROTO		@proto_stdio_48

@proto_stdio_49		TYPEDEF		PROTO C :PTR SBYTE, :size_t, :PTR SBYTE, :VARARG
_snprintf		PROTO		@proto_stdio_49

@proto_stdio_50		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE, :VARARG
sprintf			PROTO		@proto_stdio_50

@proto_stdio_51		TYPEDEF		PROTO C :PTR SBYTE, :VARARG
_scprintf		PROTO		@proto_stdio_51

@proto_stdio_52		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE, :VARARG
sscanf			PROTO		@proto_stdio_52

@proto_stdio_53		TYPEDEF		PROTO C :PTR SBYTE, :size_t, :PTR SBYTE, :VARARG
_snscanf		PROTO		@proto_stdio_53

@proto_stdio_54		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE
_tempnam		PROTO		@proto_stdio_54

@proto_stdio_55		TYPEDEF		PROTO C 
tmpfile			PROTO		@proto_stdio_55

@proto_stdio_56		TYPEDEF		PROTO C :PTR SBYTE
tmpnam			PROTO		@proto_stdio_56

@proto_stdio_57		TYPEDEF		PROTO C :SDWORD, :PTR FILE
ungetc			PROTO		@proto_stdio_57

@proto_stdio_58		TYPEDEF		PROTO C :PTR SBYTE
_unlink			PROTO		@proto_stdio_58

@proto_stdio_59		TYPEDEF		PROTO C :PTR FILE, :PTR SBYTE, :va_list
vfprintf		PROTO		@proto_stdio_59

@proto_stdio_60		TYPEDEF		PROTO C :PTR SBYTE, :va_list
vprintf			PROTO		@proto_stdio_60

@proto_stdio_61		TYPEDEF		PROTO C :PTR SBYTE, :size_t, :PTR SBYTE, :va_list
_vsnprintf		PROTO		@proto_stdio_61

@proto_stdio_62		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE, :va_list
vsprintf		PROTO		@proto_stdio_62

@proto_stdio_63		TYPEDEF		PROTO C :PTR SBYTE, :va_list
_vscprintf		PROTO		@proto_stdio_63

@proto_stdio_64		TYPEDEF		PROTO C :PTR WORD, :PTR WORD, :SDWORD
_wfsopen		PROTO		@proto_stdio_64

@proto_stdio_65		TYPEDEF		PROTO C :PTR FILE
fgetwc			PROTO		@proto_stdio_65

@proto_stdio_66		TYPEDEF		PROTO C 
_fgetwchar		PROTO		@proto_stdio_66

@proto_stdio_67		TYPEDEF		PROTO C :wchar_t, :PTR FILE
fputwc			PROTO		@proto_stdio_67

@proto_stdio_68		TYPEDEF		PROTO C :wchar_t
_fputwchar		PROTO		@proto_stdio_68

@proto_stdio_69		TYPEDEF		PROTO C :PTR FILE
getwc			PROTO		@proto_stdio_69

@proto_stdio_70		TYPEDEF		PROTO C 
getwchar		PROTO		@proto_stdio_70

@proto_stdio_71		TYPEDEF		PROTO C :wchar_t, :PTR FILE
putwc			PROTO		@proto_stdio_71

@proto_stdio_72		TYPEDEF		PROTO C :wchar_t
putwchar		PROTO		@proto_stdio_72

@proto_stdio_73		TYPEDEF		PROTO C :wint_t, :PTR FILE
ungetwc			PROTO		@proto_stdio_73

@proto_stdio_74		TYPEDEF		PROTO C :PTR wchar_t, :SDWORD, :PTR FILE
fgetws			PROTO		@proto_stdio_74

@proto_stdio_75		TYPEDEF		PROTO C :PTR WORD, :PTR FILE
fputws			PROTO		@proto_stdio_75

@proto_stdio_76		TYPEDEF		PROTO C :PTR wchar_t
_getws			PROTO		@proto_stdio_76

@proto_stdio_77		TYPEDEF		PROTO C :PTR WORD
_putws			PROTO		@proto_stdio_77

@proto_stdio_78		TYPEDEF		PROTO C :PTR FILE, :PTR WORD, :VARARG
fwprintf		PROTO		@proto_stdio_78

@proto_stdio_79		TYPEDEF		PROTO C :PTR WORD, :VARARG
wprintf			PROTO		@proto_stdio_79

@proto_stdio_80		TYPEDEF		PROTO C :PTR wchar_t, :size_t, :PTR WORD, :VARARG
_snwprintf		PROTO		@proto_stdio_80

@proto_stdio_81		TYPEDEF		PROTO C :PTR wchar_t, :PTR WORD, :VARARG
swprintf		PROTO		@proto_stdio_81

@proto_stdio_82		TYPEDEF		PROTO C :PTR WORD, :VARARG
_scwprintf		PROTO		@proto_stdio_82

@proto_stdio_83		TYPEDEF		PROTO C :PTR FILE, :PTR WORD, :va_list
vfwprintf		PROTO		@proto_stdio_83

@proto_stdio_84		TYPEDEF		PROTO C :PTR WORD, :va_list
vwprintf		PROTO		@proto_stdio_84

@proto_stdio_85		TYPEDEF		PROTO C :PTR wchar_t, :size_t, :PTR WORD, :va_list
_vsnwprintf		PROTO		@proto_stdio_85

@proto_stdio_86		TYPEDEF		PROTO C :PTR wchar_t, :PTR WORD, :va_list
vswprintf		PROTO		@proto_stdio_86

@proto_stdio_87		TYPEDEF		PROTO C :PTR WORD, :va_list
_vscwprintf		PROTO		@proto_stdio_87

@proto_stdio_88		TYPEDEF		PROTO C :PTR FILE, :PTR WORD, :VARARG
fwscanf		PROTO		@proto_stdio_88

@proto_stdio_89		TYPEDEF		PROTO C :PTR WORD, :PTR WORD, :VARARG
swscanf		PROTO		@proto_stdio_89

@proto_stdio_90		TYPEDEF		PROTO C :PTR WORD, :size_t, :PTR WORD, :VARARG
_snwscanf		PROTO		@proto_stdio_90

@proto_stdio_91		TYPEDEF		PROTO C :PTR WORD, :VARARG
wscanf		PROTO		@proto_stdio_91

@proto_stdio_92		TYPEDEF		PROTO C :SDWORD, :PTR WORD
_wfdopen		PROTO		@proto_stdio_92

@proto_stdio_93		TYPEDEF		PROTO C :PTR WORD, :PTR WORD
_wfopen		PROTO		@proto_stdio_93

@proto_stdio_94		TYPEDEF		PROTO C :PTR WORD, :PTR WORD, :PTR FILE
_wfreopen		PROTO		@proto_stdio_94

@proto_stdio_95		TYPEDEF		PROTO C :PTR WORD
_wperror		PROTO		@proto_stdio_95

@proto_stdio_96		TYPEDEF		PROTO C :PTR WORD, :PTR WORD
_wpopen		PROTO		@proto_stdio_96

@proto_stdio_97		TYPEDEF		PROTO C :PTR WORD
_wremove		PROTO		@proto_stdio_97

@proto_stdio_98		TYPEDEF		PROTO C :PTR WORD, :PTR WORD
_wtempnam		PROTO		@proto_stdio_98

@proto_stdio_99		TYPEDEF		PROTO C :PTR wchar_t
_wtmpnam		PROTO		@proto_stdio_99

SYS_OPEN		EQU		000000014h
@proto_stdio_100		TYPEDEF		PROTO C 
fcloseall		PROTO		@proto_stdio_100

@proto_stdio_101		TYPEDEF		PROTO C :SDWORD, :PTR SBYTE
fdopen		PROTO		@proto_stdio_101

@proto_stdio_102		TYPEDEF		PROTO C 
fgetchar		PROTO		@proto_stdio_102

@proto_stdio_103		TYPEDEF		PROTO C :PTR FILE
fileno		PROTO		@proto_stdio_103

@proto_stdio_104		TYPEDEF		PROTO C 
flushall		PROTO		@proto_stdio_104

@proto_stdio_105		TYPEDEF		PROTO C :SDWORD
fputchar		PROTO		@proto_stdio_105

@proto_stdio_106		TYPEDEF		PROTO C :PTR FILE
getw		PROTO		@proto_stdio_106

@proto_stdio_107		TYPEDEF		PROTO C :SDWORD, :PTR FILE
putw		PROTO		@proto_stdio_107

@proto_stdio_108		TYPEDEF		PROTO C 
rmtmp		PROTO		@proto_stdio_108

@proto_stdio_109		TYPEDEF		PROTO C :PTR SBYTE, :PTR SBYTE
tempnam		PROTO		@proto_stdio_109

@proto_stdio_110		TYPEDEF		PROTO C :PTR SBYTE
unlink		PROTO		@proto_stdio_110

; End of file stdio.h
